package com.atguigu.delivery.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data  // 自动生成 Getter、Setter、equals、hashCode 和 toString 方法
@NoArgsConstructor  // 自动生成无参构造方法
@AllArgsConstructor
public class Delivery {
    private Integer id;
    private String deliveryName;
    private Integer userId;
    private Integer companyId;
    private String phone;
    private String address;
    private String sendTime;
    private Integer state;

    private Company company; // 关联公司对象
}